/* 
 * File:   main.cpp
 * Author: brunoslr
 *
 * Created on 12 de Setembro de 2009, 01:05
 */

#include "galaxian.h"
#include "Enemy.h"
#include "spaceship.h"

int main(int argc, char **argv) {

	glutInit(&argc, argv);
        glutInitWindowPosition(-1, -1);
	glutInitWindowSize(600, 800);
	glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
	glutCreateWindow("Galaxian - Bruno Samuel Leal Rocha");

        init();
        glutIdleFunc(idle);
	glutDisplayFunc(display);
        glutKeyboardFunc(teclado);
        glutPassiveMotionFunc(moveMouse);
        glutMouseFunc(clicaMouse);
        srand ( time(NULL) );
        glutTimerFunc(33,redesenha,1);
        glutTimerFunc(60,timer,1);
	glutMainLoop();
}
